// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入elementui
import ElementUI from 'element-ui'
// 下载axios
import axios from './http'

Vue.config.productionTip = false

// 将axios挂载到prototype上，在组件中可以直接使用this.axios访问
Vue.prototype.axios = axios;
// 挂载ElementUI
Vue.use(ElementUI)
/* eslint-disable no-new */
// new Vue({
//   el: '#app',
//   router,
//   axios,
//   components: { App },
//   template: '<App/>'
// })


new Vue({
  router,
  axios,
  render: h => h(App)
}).$mount('#app');